/*
 * Copyright：fxsen <br/>
 * Date: 2021/9/19 12:01 <br/>
 * Author: <a href="mailto:fxsen@foxmail.com">fxsen</a>
 */
package com.fxsen.commons.sysmanager.core.mapper;

import com.fxsen.commons.core.base.common.mapper.CommonMapper;
import com.fxsen.commons.sysmanager.core.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @describe: 系统用户数据访问层 <br/>
 * @date: 2021/9/19 12:01 <br/>
 * @author: <a href="mailto:fxsen@foxmail.com">fxsen</a>
 */
@Mapper
@Repository
public interface UserMapper extends CommonMapper<User> {
    @Select("select * from sys_user")
    List<User> getAll();
    @Select("select * from sys_user where login_name = #{loginName}")
    User getByLoginName(String loginName);
}
